
{% if form.errors %}
	<p>Your username and password didn't match. Please try again.</p>
{% endif %}



{% if message %}
{{ message }}
{% endif %}

{% if not request.user.is_authenticated %}	
	         <div id="topnav" class="topnav"> Have an account? <a href="login" class="signin"><span>Sign in</span></a><br /> 
                  <a class="create_user" href="/create_user/"> Create User </a>                  </div>

                   <fieldset id="signin_menu">
                <form method="post" id="signin" action="/login/">
                  <label for="username">Username or email</label>
                  <input id="username" name="username" value="" title="username" tabindex="4" type="text">
                  </p>
                  <p>
                    <label for="password">Password</label>
                    <input id="password" name="password" value="" title="password" tabindex="5" type="password">

                  </p>
                  <p class="remember">
                    <input id="signin_submit" value="Sign in" tabindex="6" type="submit">
                  </p>

                </form>
               </fieldset>
{% else %}
	<div id="topnav" class="topnav">
		Welcome {{ request.user.username }}
		<br/>
		<a href="/logout/"> Logout</a>
	</div>
{% endif %}



